﻿using DAEProde.Domain;
using DAEProde.Tasks.ViewModels;
using SharpLite.Domain.DataInterfaces;

namespace DAEProde.Tasks
{
    public class TeamCudTasks : BaseEntityCudTasks<Team, EditTeamViewModel>
    {
        public TeamCudTasks(IRepository<Team> teamRepository)
            : base(teamRepository) { }

        protected override void TransferFormValuesTo(Team toUpdate, Team fromForm)
        {
            toUpdate.Name = fromForm.Name;
        }
    }
}
